{extend name="base" /}
{block name="title"}产品列表{/block}
{block name="main"}
<link rel="stylesheet" href="/static/index/products/style.css">
<div class="swarp">
    <button type="button" class="am-btn am-btn-default am-round"><a href="<?php echo url('add_product',['user_id'=>$user_id]); ?>">添加产品</a></button>

    <table class="am-table">
        <thead>
        <tr>
            <!--th>#ID</th-->
            <th>产品名称</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="data" id="vo"}
        <tr>
            <!--td>{$vo.prod_id}</td-->
            <td>{$vo.name}</td>
            <td><a href="<?php echo url('index/mails/index',['prod_id'=>$vo['prod_id']]); ?>"><span class="am-badge am-badge-primary">邮件[{$vo.mails}]</span></a></td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>
{/block}
